
#include "communicatUart3Tx.h"
#include "uart.h"
#include "baseData.h"
#include "communicatUart3Rx.h"

/***
*一帧数据一共0xfd+0xfd+37*6+check=2+222+1=225个字节
*
*/
uint8_t sendu3Tmp[117];
void uart3SendUpdate(void)
{
	uint8_t checksum=0;
	static uint8_t packtmp=0;
	sendu3Tmp[0]=0xfd;
	sendu3Tmp[1]=0xfd;
	packtmp++;
	for(uint8_t i=0;i<114;i++)
	{ 
		sendu3Tmp[i+2]=From_to.Usart1_to_Usart3[i];
	}
	sendu3Tmp[2]=packtmp;
	for(uint8_t i=2;i<=115;i++)
	{
		checksum+=sendu3Tmp[i];
	}
	sendu3Tmp[116]=checksum;
	
	if(g_DetectTimeOpen==0)
	{
		//dma3senddatatransplant(sendu3Tmp,225);
		uart3SendData(sendu3Tmp,117);
	}
}

 



